package com.justin.oauthserver.service.impl;

import com.justin.oauthserver.domain.Permission;
import com.justin.oauthserver.mapper.PermissionMapper;
import com.justin.oauthserver.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author huyapeng
 * @date 2019/8/5
 * Email: yapeng.hu@things-matrix.com
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> selectByUserId(Long userId) {
        return permissionMapper.selectByUserId(userId);
    }
}
